{% extends 'users/base.html' %}
{% load common_extras %}
{% load static %}
{% block link %}
    <link rel="stylesheet" href="{% static 'css/fun/record_detail.css' %}">
{% endblock %}
{% block title %}
    {{ record.title }}
{% endblock %}
{% block header %}
    {% include 'function/header.html' %}
{% endblock %}
{% block main %}
    <div class="content">
        <div>
            <div class="left_box">
                >>>>>
            </div>
            <div class="right_box">
                <div class="info">
                    <h1 class="title">{{ record.title }}</h1>
                    <h2>&emsp;</h2>
                    <h2>&emsp;</h2>
                    <h2>&emsp;</h2>
                    <div class="im">
                        <img class="img" src="/static/media/{{ record.picture }}" alt="----------">
                    </div>
                    <div class="tags">
                        <h2>&emsp;</h2>
                        <h2>&emsp;</h2>
                        ——
                        <span>作者:{{ record.user.username }}</span>
                        <span>发布时间:{{ record.create_time|time_since }}</span>
                        {% if record.label %}
                            <span>标签:</span>
                            {% for i in labels %}
                                <span class="tag">{{ i.name }}</span>
                            {% endfor %}
                            <h2>&emsp;</h2>
                            <a class="userdetail" href="/fun/userdetail/{{ user_id }}">|作者详情|</a>
                            <h2>&emsp;</h2>
                        {% endif %}

                    </div>
                </div>
                <div class="record">
                    {{ record.content }}
                </div>
            </div>
        </div>
    </div>
{% endblock %}